package com.leinao.media.exception;

/**
 * 自定义异常
 *
 * @author zhangyu
 * @date 2021/12/2 14:00
 */
public class MediaClientException extends RuntimeException {

    private int code;

    public MediaClientException(String message, int code) {
        super(message + "," + code);
        this.code = code;
    }

    public MediaClientException(String message, int code, Throwable cause) {
        super(message, cause);
        this.code = code;
    }

    public int getCode() {
        return this.code;
    }
}
